home *** CD-ROM | disk | FTP | other *** search
- Path: news.MWCI.NET!usenet
- From: stuffle@pcii.net
- Newsgroups: comp.lang.c++
- Subject: Re: ini files under MSVC 1.52 link problem
- Date: 24 Jan 1996 12:54:42 GMT
- Organization: MidWest Communications, Inc.
- Message-ID: <4e5a6i$hr1@hihat.mwci.net>
- References: <4e2lu9$168@snlsu1>
- Reply-To: stuffle@pcii.net
- NNTP-Posting-Host: lan-pm1-12.pcii.net
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- In <4e2lu9$168@snlsu1>, Laurent Darton <darton@macon.wm.slb.com> writes:
- >hi all,
- >I would like to write in a private ini file under windows..
-
- Then this should probably be in a comp.os.windows.* group.
-
- >here is what I've done
- >
- >#include <windows.h>
- >
- >void main(void)
- >{
- >BOOL fSuccess;
- >fSuccess=WritePrivateProfileString("MyApp","LastFile","testcode.c","testc
- >ode.ini");
- >}
- >
-
- Looks good so far.
-
- >I have a problem with link :
- >MAIN.OBJ(r:\mbus\tsr\global\ini\main.cpp) : error L2029:
- >'WRITEPRIVATEPROFILESTRING' : unresolved external
- >
- >I think it 's a problem with uppercase letters...
- >but I don't know how to solve it.
- >Rem : I need to make a dos application not under windows..
-
- PROBLEM: WritePrivateProfileString is a Windows API call. Therefore,
- you can only use it in Windows programs. Unless there is already a
- 3rd party tool out there, you will probably have to create your own
- ini file parser or make a Windoze app instead of a DOS app.
-
- >Any help will be welcom..
- >Thanks in advance
- >Laurent
- >
- >
-
- HTH
-
-
- \\\|///
- | ~ ~ |
- (- @ @ -)
- //------------------------oOOo----(_)----oOOo------------------------
- // Ken Sodemann (Stuffle) | Life is a lot easier
- // Stuffle@PCII.NET | when you are
- // http://users.mwci.net/~stuffle/ | Warped!!
- //-------------------------------------------------------------------
-
-